package jay.home.bet.web.struts;

import java.util.HashMap;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import jay.home.bet.domain.Event;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class OldScoreAction extends BaseAction
{
	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		HashMap map = new HashMap();
		map.put("alive", false);
		
		List<Event> events = getOddsService().getEvents(map, getPageNumber(request), 50);
		
		request.setAttribute("events", events);
		
		return mapping.findForward("SUCCESS");
	}
}
